<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<html>
<head>
  <script type="text/javascript">
  function doSearch() {
	  grid.load({
            message_title: $('#message_title').val(),
            login_id: $('#login_id').val(),
            publish_st: $('#publish_st').val(),
            name: $('#name').val()
		});
  }
  /*新增*/
  function addPushMessage(url){
      commonDetail(url,"save","pushMessageTableId");
  }
  //详细信息
  function modifyPushMessage(url){
      commonDetail(url,"detail","pushMessageTableId");
  }
  var grid;
  $(document).ready(function() {
	  grid = $("#pushMessageTableId").jpgrid({
			url: "pushMessageListJson.do",
			columns: [
                {title: "所属机构", field: "NAME",width:270},
				{title: "会员名称", field: "CUSTOM_NAME",width:180},
                {title: "标题", field: "MESSAGE_TITLE",width:200}
			]
		});
  });
  </script>
</head>
<body class="easyui-layout list_body"  >
	<form id="pushMessageForm" name="pushMessageForm">
		<div class="list_body_north" data-options="region:'north'"  border="false" >
			<!-- 查询表单 -->
			<div  class="datagrid-toolbar" border="false"  >
				<span>标题:</span>
				<input id="message_title" type="text" name="message_title"  class="easyui-textbox"  >
				<span>会员登录账号:</span>
				<input id="login_id" type="text" name="login_id"  class="easyui-textbox"  >
				<span>会员名称:</span>
				<input id="name" type="text" name="name"  class="easyui-textbox"  >
				<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch() ">查询</a> 
				<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm() ">重置</a>					
			</div>
			<!-- 自定义标签工具栏 -->
			<jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>	
		</div>
		<div data-options="region:'center'" border="false"  class="list_body_center">		
			<!-- 表格 -->
			<table id="pushMessageTableId" fit="true"></table>
		</div>
	</form>
</body>
</html>
 </html>
